You only have 10. What's the value of nbdy_nodes?
Printable View
You only have 10. What's the value of nbdy_nodes?
Alright, then it's likely that the memory is corrupted somehow by BDY_FLAG.
Comment it out, see if it fixes anything.
If it does, then the easiest way to catch your error is to use a debugger or check for buffer overflows.
Yes, indeed when I do not call the function BDY_FLAG I get all running fine;
I debugged it and I was entering a part of memory not allocated!
Man, this can give you a lot of headaches!
thank you very much for helping
Best
CFD